FROM oujihong/jdk8:latest
WORKDIR /app
VOLUME ["/app/logs"]
LABEL aliyun.logs.douyin="/app/logs/app.log"
COPY ./target/backend-0.0.1-SNAPSHOT.jar .
COPY ./entrypoint.sh .
RUN chmod +x ./entrypoint.sh
ENV  TZ='Asia/Shanghai'  LANG=C.utf8
EXPOSE 8080
ENTRYPOINT ./entrypoint.sh
HEALTHCHECK  CMD curl -f http://127.0.0.1:8080/healthcheck.html || exit 1